package com.cswnode.Dao;

import com.cswnode.Entity.LoginTicket;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author csw
 * @create 2020/9/16 15:30
 */
@Mapper
@Deprecated
public interface LoginTicketMapper {
    /**
     * 添加登陆凭证
     * @param loginTicket
     * @return
     */
    int insertLoginTicket(LoginTicket loginTicket);

    /**
     * 修改状态信息
     * @param ticket
     * @param status
     * @return
     */
    int updateBystatus(@Param("ticket") String ticket,@Param("status") int status);

    /**
     * 根据凭证查找
     * @param ticket
     * @return
     */
    LoginTicket selectByTicket(@Param("ticket") String ticket);

}
